<script src="../../asset/js/jquery-1.8.2.min.js"></script>
<script src="../../asset/js/number_format.js"></script>
<link href="../../asset/css/cetak.css" rel="stylesheet" type="text/css">
<!--<script type="text/javascript" src="js/combo.js"></script>-->
<?php
	require_once('../../config/koneksi.php');
	require_once('../../config/class_paging_param.php');
	require_once('../../config/fungsi_tgl_indo.php');
	
	
?>

<script type="text/javascript" src="js_detail/klaim.js"></script>
<?php
//require_once '../../config/koneksi.php';
$id_klaim=$_GET['id'];
//$sql="select a.*,pn.nama as nama_penduduk from klaim a inner join  peserta p on a.id_peserta = p.id_peserta inner join penduduk pn on p.id_penduduk = pn.id_penduduk where id_klaim='".$id_klaim."'";
$sql="SELECT a.*,pn.nama AS nama_penduduk,jp.jenis_peserta,jl.jenis_layanan,pk.nama AS nama_ppk,
		v.nama AS nama_verifikator,sk.status_keluar,DATEDIFF(a.tgl_keluar,a.tgl_masuk) AS selisih
		FROM klaim a INNER JOIN  peserta p ON a.id_peserta = p.id_peserta 
		INNER JOIN penduduk pn ON p.id_penduduk = pn.id_penduduk 
		INNER JOIN jenis_peserta jp ON p.id_jenis_peserta=jp.id_jenis_peserta
		INNER JOIN jenis_layanan jl ON a.id_jenis_layanan=jl.id_jenis_layanan
		INNER JOIN ppk pk ON a.id_ppk=pk.id_ppk
		INNER JOIN pengguna v ON a.id_verifikator=v.id_pengguna
		INNER JOIN status_keluar sk ON a.id_status_keluar=sk.id_status_keluar
		where id_klaim='".$id_klaim."'";
		//echo $sql;
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
<div id="tiga">        
<h2>Detail Klaim</h2>
<table style="margin: 10px 15px 10px 15px;">
  <tr>
    <td>Total Semua </td>
    <td><div style="font-weight:bold;" id="target_total_semua"></div></td>
  </tr>
  <tr>
    <td>Ditanggung Semua </td>
    <td><div style="font-weight:bold;" id="target_ditanggung_semua"></div></td>
  </tr>
  <tr>
    <td>Selisih Semua </td>
    <td><div style="font-weight:bold;" id="target_selisih_semua"></div></td>
  </tr>

</table>
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td width="200">Nomer Klaim</td>
			<td>&nbsp;</td>
			<td width="320"><?php echo $hasil['id_klaim'];?></td>
			<td width="200">Jenis Layanan</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['jenis_layanan'];?></td>
		</tr>
		<tr>
			<td>Tanggal Masuk </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['tgl_masuk'];?></td>
			<td>Nama PPK</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['nama_ppk'];?></td>
		</tr>
		<tr>
			<td>Tanggal Keluar </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['tgl_keluar'];?></td>
			<td>Umur</td>
			<td>&nbsp;</td>
			<td><?php echo konversi_hari($hasil['umur'])?></td>
		</tr>
		<tr>
			<td>Nomer Jaminan </td>
			<td>&nbsp;</td>
		  <td><?php echo $hasil['id_jaminan'];?></td>
			<td>Lama Rawat</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['selisih'];?> hari</td>
		</tr>
		<tr>
			<td>No Peserta </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['id_peserta'];?></td>
			<td>No. RM</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['no_rm'];?></td>
		</tr>
		<tr>
			<td>Nama Peserta </td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['nama_penduduk'];?></td>
			<td>Verifikator</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['nama_verifikator'];?></td>
		</tr>
		<tr>
			<td rowspan="2">Keterangan</td>
			<td rowspan="2">&nbsp;</td>
			<td rowspan="2"><?php echo $hasil['keterangan'];?></td>
			<td>Status Keluar</td>
			<td>&nbsp;</td>
			<td><?php echo $hasil['status_keluar'];?></td>
		</tr>
		
	</table>

<h2>Diagnosis</h2>
<?php require_once 'js_detail/diagnosis.php';?>
<h2>Prosedur</h2>
<?php require_once 'js_detail/prosedur.php';?>
<h2>Layanan</h2>
<?php require_once 'js_detail/layanan.php';?>
<h2>Tindakan</h2>
<?php require_once 'js_detail/tindakan.php';?>
<h2>Laboratorium</h2>
<?php require_once 'js_detail/laboratorium.php';?>
<h2>Elektromedik</h2>
<?php require_once 'js_detail/elektromedik.php';?>
<h2>Rehabilitasi</h2>
<?php require_once 'js_detail/rehabilitasi.php';?>
<h2>Radiologi</h2>
<?php require_once 'js_detail/radiologi.php';?>
<h2>Obat</h2>
<?php require_once 'js_detail/obat.php';?>
<h2>ABHP</h2>
<?php require_once 'js_detail/abhp.php';?>

<br />

</div>

        